package org.jeese.demo;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;

import org.hibernate.validator.constraints.Length;

public class Demo implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@NotEmpty(message = "用户名不能为空")
	@Length(min = 6, max = 12, message = "用户名长度必须位于6到12之间")
	private String userName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
